<?php

$self = array(
	'name' => 'CJoinqueue',

	'type' => 'collection',

	'fields' => array(
		array( 'name' => 'oid'           , 'type' => 'integer' , ),
		array( 'name' => 'community_oid' , 'type' => 'integer' , ),
		array( 'name' => 'user_oid'      , 'type' => 'integer' , ), 
		array( 'name' => 'state'   		 , 'type' => 'integer', 'db' => array( 'type' => 'TINYINT', 'size'=>1),	 ), // состояние
	),

	'indexes' => array(
		array('community_oid', 'user_oid', ),
	),

	'primary_key' => array('oid'),

	'db' => array('name' => 'joinqueue' ),

	'implement' => 'collections/collection.php#collection',
);

